package pers.mobian.springsecond;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

/**
 * @Date 2021/6/30 20:43
 * @Created mobian
 * @Description
 */
public class BeanFactoryTest {
	public static void main(String[] args) {

		XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("spring-test.xml"));
		Object user = beanFactory.getBean("user");
		Object cat = beanFactory.getBean("cat");

		System.out.println(user);
		System.out.println(cat);

	}
}
